class BootStrap {

     def init = { servletContext ->
        User u01 = new User(userName:"MinSeok Jang")
        u01.save()
        User u02 = new User(userName:"JoongWook Choi")
        u02.save()

        Place p01 = new Place(placeName:"Paris", placeDescription:"", gps:"")
        p01.save()
        Place p02 = new Place(placeName:"NewYork", placeDescription:"", gps:"")
        p02.save()
        Place p03 = new Place(placeName:"Seoul", placeDescription:"", gps:"")
        p03.save()
        Place p04 = new Place(placeName:"GwangJu", placeDescription:"", gps:"")
        p04.save()
        Place p05 = new Place(placeName:"London", placeDescription:"", gps:"")
        p05.save()

        PlanItem pi01 = new PlanItem(place: p01, date: new Date())
        pi01.save()
        PlanItem pi02 = new PlanItem(place: p02, date: new Date())
        pi02.save()
        PlanItem pi03 = new PlanItem(place: p03, date: new Date())
        pi03.save()
        PlanItem pi04 = new PlanItem(place: p04, date: new Date())
        pi04.save()

        Plan pl01 = new Plan(user: u01, planItemSet:[pi01, pi02])
        Plan pl02 = new Plan(user: u01, planItemSet:[pi01, pi02])



     }
     def destroy = {
     }
} 